How to Simplify Integers with Multiple Operations